 {
        
  cc.Class({
            extends: cc.Component,
            properties: {
                nodePengPatternDown: {
                    default: null,
                    type: cc.Prefab
                },
                nodePengPatternRight: {
                    default: null,
                    type: cc.Prefab
                },
                nodePengPatternUp: {
                    default: null,
                    type: cc.Prefab
                },
                nodePengPatternLeft: {
                    default: null,
                    type: cc.Prefab
                },
                nodeGangPatternDown: {
                    default: null,
                    type: cc.Prefab
                },
                nodeGangPatternRight: {
                    default: null,
                    type: cc.Prefab
                },
                nodeGangPatternUp: {
                    default: null,
                    type: cc.Prefab
                },
                nodeGangPatternLeft: {
                    default: null,
                    type: cc.Prefab
                },
                seatId: 0
            },
            onLoad: function () {
                Global.notificationCenter.on(Global.eventName.GAME_REFRESH_STAND_TILE, this._onRefreshPengTile.bind(this), this);
            },
            start: function () {
            },
            onDestroy: function () {
                Global.notificationCenter.offAll(this);
            },
            _onRefreshPengTile: function () {
                this.node.removeAllChildren();
                var e = [], t = Global.tableModel.getPlayerModel(this.seatId);
                if (t) for (var n = t.getPeng_tiles(), o = 0; o < n.length; o++) {
                    if (r = this._getPrefabInstance(!0)) this.node.addChild(r), e.push(r), r.getComponent("PengPatternController").bindData(n[o]);
                }
                if (t) {
                    var i = t.getGang_tiles();
                    for (o = 0; o < i.length; o++) {
                        if (r = this._getPrefabInstance(!1)) this.node.addChild(r), e.push(r), r.getComponent("PengPatternController").bindData(i[o]);
                    }
                }
                if (t) {
                    var a = t.getChi_tiles();
                    for (o = 0; o < a.length; o++) {
                        var r;
                        if (r = this._getPrefabInstance(!0)) this.node.addChild(r), e.push(r), r.getComponent("PengPatternController").bindData(a[o]);
                    }
                }
                var s = 0, l = 0, c = 0, d = 1, u = !1;
                this.seatId == Global.config.SEAT_DOWN && (e.reverse(), s = -150), this.seatId == Global.config.SEAT_RIGHT && (e.reverse(),
                    l = -120, c = 30, d = .7, u = !1), this.seatId == Global.config.SEAT_UP && (e.reverse(),
                    s = 100), this.seatId == Global.config.SEAT_LEFT && (l = 150, c = 35, d = .7, u = !0);
                for (o = 0; o < e.length; o++) {
                    var h = e[o], f = d;
                    f = 1 == u ? d + (5 - o) / 5 * (1 - d) : d + o / 5 * (1 - d), h.scaleX = f, h.scaleY = f,
                        h.setPosition(cc.p(s * o + c * o, f * l * o));
                }
            },
            _getPrefabInstance: function (e) {
                if (1 == e) {
                    if (this.seatId == Global.config.SEAT_DOWN) return cc.instantiate(this.nodePengPatternDown);
                    if (this.seatId == Global.config.SEAT_RIGHT) return cc.instantiate(this.nodePengPatternRight);
                    if (this.seatId == Global.config.SEAT_UP) return cc.instantiate(this.nodePengPatternUp);
                    if (this.seatId == Global.config.SEAT_LEFT) return cc.instantiate(this.nodePengPatternLeft);
                } else {
                    if (this.seatId == Global.config.SEAT_DOWN) return cc.instantiate(this.nodeGangPatternDown);
                    if (this.seatId == Global.config.SEAT_RIGHT) return cc.instantiate(this.nodeGangPatternRight);
                    if (this.seatId == Global.config.SEAT_UP) return cc.instantiate(this.nodeGangPatternUp);
                    if (this.seatId == Global.config.SEAT_LEFT) return cc.instantiate(this.nodeGangPatternLeft);
                }
                return null;
            }
        })
    }